W32: Fix for commit 1f74f12d9, re-enabling decimal separator key
authorFredy Paquet <fredy@opag.ch>
Fri, 26 Feb 2016 17:21:26 +0000 (17:21 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Fri, 26 Feb 2016 17:24:32 +0000 (17:24 +0000)
commit0a6ee5e2cfe365e9ff6d391193edecf511d3a962
tree511df8ff900a11106dcb12b02f38626334afcf57
parent9f606b827092e2edd887686507cd6e4bb368bb07
W32: Fix for commit 1f74f12d9, re-enabling decimal separator key

1f74f12d9 rendered entry of keypad decimal mark unuseable for
several national keyboard layouts, this commit amends that, at
least for W32, and makes GTK+ behave more or less the same way
W32 behaves.

The patch works like this:
- When typing the first character at the keyboard or when switching
  keyboard layouts, the decimal mark character will be cached in the
  static variable "decimal_mark" within gdkkeys-win32.c

- in case of WIN32, gdk_keyval_to_unicode() asks gdkkeys-win32.c for the
  current decimal_mark when converting GDK_KEY_KP_Decimal.

https://bugzilla.gnome.org/show_bug.cgi?id=756751
gdk/gdkkeyuni.c
gdk/win32/gdkkeys-win32.c
gdk/win32/gdkprivate-win32.h